home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Tele
/
C
/
Comet2.1.3.cpt
/
include
/
key.h
< prev
next >
Wrap
Text File
|
1990-08-03
|
1KB
|
55 lines
/*
Copyright Cornell University 1986. All rights are reserved.
*/
/* key mapping vars */
#ifndef _KEYDEF
#define _KEYDEF
/* action queue handling */
/* define the token type returned from the user interface routine */
struct token {
unsigned char class;
unsigned char entry;
};
typedef struct token TOKEN;
extern int q_cnt;
extern void keyputaction();
extern void putaction();
extern struct token * getaction();
/* key buffer get key struct * call */
struct key {
char keycode;
char thechar;
int modifiers;
};
/* key macro items */
struct keyxlist {
int actlen; /* number of actions in key exception resource */
Handle hkeyact; /* handle to key exception resource */
struct keyxlist * nextkey;
};
/* structure of the keyid/action list thing hkeyact points to */
struct keyactlist {
long keyid;
struct token act[1];
};
extern char * keyname(); /* forward declaration */
extern struct token * keyxfind(); /* forward declaration */
extern struct keyxlist * keyxptr(); /* forward declaration */
extern struct keyxlist * keyxhead;
#endif